package com.daoeping.dao;

import com.daoeping.data.Usr_userbasicinfo;
import com.daoeping.data.Usr_workexperience;
import java.util.List;


public class Usr_workexperienceDAO extends AllDaoSupport {
	public List<Usr_workexperience> findUsr_workexperienceList(){
		String hql = "from Usr_workexperience";
		return (List<Usr_workexperience>) this.selectDataByHQL(hql);
	}
	
	public List<Usr_workexperience> findUsr_workexperienceById(int id){
		String hql = "from Usr_workexperience where id =" + id;
		return (List<Usr_workexperience>) this.selectDataByHQL(hql);
	}
	
	public List<Usr_workexperience> findUsr_workexperienceByUserId(int user_id){
		String hql = "from Usr_workexperience where user_id =" + user_id + "order by id desc";
		return (List<Usr_workexperience>) this.selectDataByHQL(hql);
	}
}